package com.hzit.loan.repayment.iClient;

import com.hzit.loan.pay.commonApi.req.PayReq;
import com.hzit.loan.pay.commonApi.resp.PayResultData;
import com.hzit.loan.pay.commonApi.resp.RespVo;
import com.hzit.loan.repayment.iClient.impl.LoanPayClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * springCloud 远程调用
 */
@FeignClient(name = "HZIT-LOAN-PAY",fallback = LoanPayClientImpl.class)


public interface ILoanPayClient {

    /**
     * 网银支付接口
     * @param payReq
     * @return
     */
    @RequestMapping("/pay/create")
    public RespVo<PayResultData> netBankPay(@RequestBody PayReq payReq);
}
